<div id="viewhomepage">
    <?php
    $this->title ="Welcome!!";
    $this->headTitle($this->title);
    ?>
    <div class="search" >
        <form name="form1" action="search/quickjobsearch" method="post" >
            <input id="search" type="text" class="" value=""/>
            <input type="submit" value="Search">
        </form>
    </div>
    <div id="blocks">
         <div class="block">
             <img src="images/search_category.gif" alt="" width="214" height="29" /><br />
             <?php
            $basepath = Zend_Controller_Front::getInstance()->getBaseUrl();
            echo '<table>';
            foreach($this->paginator as $job)
            {
                echo "<tr>";
                echo "<td>";
                echo "<a href='$basepath/jobs/jobsbycategory/jobcatid/".$job['jobcategory']
                ."'>" . $job['jobcategory']. "(" . $job['jobcount']. ") </a>";
                echo "</td>";
                echo "</tr>";
            }
            if(count($this->paginator) > 0)
            {
                echo "<tr><td><div class='paginator'>$this->paginator</div></td></tr>";

            }
            echo '</table>';
        ?>

            
        </div>
        <div class="block">
            <img src="images/hot_jobs.gif" alt="" width="214" height="29" /><br />
            <?php
                $i = 0;
                $changerow = true;
                echo "<table>";
                foreach($this->hotjobs as $hotjob)
                {
                    if($changerow)
                    {
                        echo "<tr>";
                        $changerow = false;
                    }
                    echo "<td>";
                    echo $this->partial('hotjobstemplate.phtml',$hotjob);
                    echo "</td>";
                     if(++$i % 2 == 0)
                     {
                         $changerow = true;
                         echo "</tr>";
                     }
                }
                echo "</table>";
            ?>
        </div>
        <div class="block">
            <img src="images/title1.gif" alt="" width="214" height="29" /><br />
        </div>
        <div class ="block">
            <img src="images/sign_me_in.gif" alt="" width="214" height="29" /><br />
            <p class="signup">
            <?php echo $this->login; ?>
            </p>
        </div>
         
</div>

 </div>
